<template>
  <div class="home">
    <el-button type="info" @click="clear">退出</el-button>
  </div>
</template>

<script>

export default {
  name: 'home',
  props: [''],
  data () {
    return {

    }
  },

  components: {},

  computed: {},

  beforeMount () { },

  mounted () { },

  methods: {
    clear () {
      window.sessionStorage.clear()
      this.$router.push('./login')
      this.$message.success('退出成功')
    }
  },

  watch: {}

}

</script>
<style lang='less' scoped>
</style>
